package com.foreveredu.propms.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Description:<br/>
 * 领域模型：房产水电气使用量记录类<br/>
 * Date:<br/>
 * 2013/6/27<br/>
 * 
 * @author hushigang
 */

@Entity
@Table(name = "T_Utilities")
public class Utilities {

	private int id;
	private House house;
	private float waterBegin;// 水表1起码
	private float waterEnd;// 水表1止码
	private float water2Begin;// 水表2起码
	private float water2End;// 水表2止码
	private float powerBegin;// 电表1起码
	private float powerEnd;// 电表1止码
	private float power2Begin;// 电表2起码
	private float power2End;// 电表2止码
	private int year;// 年度
	private int month;// 月份

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@ManyToOne
	@JoinColumn(name = "house_id")
	public House getHouse() {
		return house;
	}

	public void setHouse(House house) {
		this.house = house;
	}

	@Column
	public float getWaterBegin() {
		return waterBegin;
	}

	public void setWaterBegin(float waterBegin) {
		this.waterBegin = waterBegin;
	}

	@Column
	public float getWaterEnd() {
		return waterEnd;
	}

	public void setWaterEnd(float waterEnd) {
		this.waterEnd = waterEnd;
	}

	@Column
	public float getPowerBegin() {
		return powerBegin;
	}

	public void setPowerBegin(float powerBegin) {
		this.powerBegin = powerBegin;
	}

	@Column
	public float getPowerEnd() {
		return powerEnd;
	}

	public void setPowerEnd(float powerEnd) {
		this.powerEnd = powerEnd;
	}

	@Column
	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	@Column
	public int getMonth() {
		return month;
	}

	public void setMonth(int month) {
		this.month = month;
	}
	
	@Column
	public float getWater2Begin() {
		return water2Begin;
	}

	public void setWater2Begin(float water2Begin) {
		this.water2Begin = water2Begin;
	}

	@Column
	public float getWater2End() {
		return water2End;
	}

	public void setWater2End(float water2End) {
		this.water2End = water2End;
	}

	@Column
	public float getPower2Begin() {
		return power2Begin;
	}

	public void setPower2Begin(float power2Begin) {
		this.power2Begin = power2Begin;
	}

	@Column
	public float getPower2End() {
		return power2End;
	}

	public void setPower2End(float power2End) {
		this.power2End = power2End;
	}

}
